import { listAllData, returnById, findById, exportData } from '@/services/therapeuticFormalPoolApi';

export default {
    namespace: 'therapeuticFormalPool',
    state: {

    },

    effects: {
        /**
        * 分页
        * @param payload
        * @param call
        * @param put
        * @returns {Generator<*, *, *>}
        */
        *listAllData({ payload }, { call, put }) {
            const response = yield call(listAllData, payload);
            return response;
        },

        /**
        * 回退
         * */
        *returnById({ payload }, { call, put }) {
            const response = yield call(returnById, payload);
            return response;
        },

        /**
        * 详情
         * */
        *findById({ payload }, { call, put }) {
            const response = yield call(findById, payload);
            return response;
        },


        /**
   * 点击导出列表信息
   * @param payload
   * @param call
   * @param put
   * @returns {Generator<*, *, *>}
   */
        *exportData({ payload }, { call, put }) {
            const response = yield call(exportData, payload);
            return response;
        },



    },

    reducers: {


    },
};

